package com.wxzz.elearing.course.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.wxzz.elearning.common.bean.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@Data
@ApiModel(value = "", description = "在线考试")
public class Exam extends BaseEntity {

    @ApiModelProperty(value = "封面图")
    private String examBanner;

    @ApiModelProperty(value = "考试名称")
    private String examName;

    @ApiModelProperty(value = "预计时间")
    private LocalDateTime scheduledTime;

    @ApiModelProperty(value = "考试详情")
    private String examDetail;

    @ApiModelProperty(value = "企业id")
    private Long enterpriseId;

    @ApiModelProperty(value = "合格标准 大于等于几分")
    private BigDecimal qualified;

    @ApiModelProperty(value = "考试描述")
    private String examDescribe;

    @TableField(exist = false)
    @ApiModelProperty(value = "题目数量")
    private Integer topicNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "总分")
    private BigDecimal topicAllScore = new BigDecimal("0.00");

    @TableField(exist = false)
    @ApiModelProperty(value = "考试测评试题")
    private List<CurriculumSectionTopic> curriculumSectionTopics;

    @TableField(exist = false)
    @ApiModelProperty(value = "考试人数")
    private Integer testPersonNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "考试次数")
    private Integer testNum = 0;

    @TableField(exist = false)
    @ApiModelProperty(value = "通过率")
    private double passProbability = 0;
}
